@page {
  size: A4;
}
@media print {
  h1 {
    string-set: doctitle content();
    counter-reset: footnote figurenum;
    line-height: 1.3;
  }
  .page-break {
    page-break-before: always;
  }
  pre,
  code {
    page-break-inside: avoid;
  }
}
